#ifndef _FUNCTIONS_CONTROL_H
	#define _FUNCTIONS_CONTROL_H

	#define disable_interrupt() 	asm volatile ("cli"::)
	#define enable_interrupt() 	asm volatile ("sei"::)
	#ifndef F_CPU
		#define F_CPU 8000000UL  		// 8 MHz
	#endif


	void doDelay(unsigned int miliseconds);
	void waitFor(unsigned int miliseconds);
	unsigned int changeBit(unsigned int bits, unsigned int bitNum, unsigned int isON);
	int isBitOn(unsigned int byte, unsigned int bitCheck);
	int isBitMskOn(unsigned int byte, unsigned int bitMask);
#endif
